import { useState } from "react"

const FormStateDemo=()=>{
    const [value,setValue]=useState('')
    return (
        <>
        {/* 004表单数据绑定 */}
        {/* v-model */}
        {value}
        <input type="text" value={value} onChange={(e)=>setValue(e.target.value)} />
        </>
    )
}

export default FormStateDemo